<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{/user/update}" method="post">
    <input type="hidden" name="userId" th:value="${user.userId}">
    姓名：<input type="text" name="username" th:value="${user.username}"/><br/>
    性别：<input type="radio" name="sex" value="0" th:field="${user.sex}"/>女
    <input type="radio" name="sex" value="1" th:field="${user.sex}"/>男<br/>
    成绩：<input type="text" name="password" th:value="${user.password}"/><br/>
    手机号：<input type="text" name="telephone" th:value="${user.telephone}"/><br/>
    <input type="submit" value="确定"/><br/>
</form>
</body>
</html>